package com.starblink.android.basic.widget.refresher

import com.scwang.smart.refresh.layout.SmartRefreshLayout

/**
 * 刷新-上拉加载组件控制
 */
class SKRefresher private constructor() {

    companion object {

        @JvmStatic
        fun initRefreshStyle() {
            SmartRefreshLayout.setDefaultRefreshInitializer{ context, layout ->
                layout.setEnableAutoLoadMore(false)
            }
            SmartRefreshLayout.setDefaultRefreshHeaderCreator { context, _ ->
                SKRefreshHeader(context = context)
            }
            SmartRefreshLayout.setDefaultRefreshFooterCreator { context, _ ->
                SKRefreshFooter2(context = context)
            }
        }

    }

}